import request from '@/utils/request'

// 查询机柜部署图
export function fetchCabinetDeployList(query) {
  return request({
    url: '/api/hostBare/queryCabinetDeploy',
    method: 'get',
    params: query
  })
}

// 获取机房列表
export function fetchIdcList(query) {
  return request({
    url: '/api/idc/list',
    method: 'get',
    params: query
  })
}

// 获取集群列表
export function fetchClusterList(data) {
  return request({
    url: '/api/host/queryAllCluster',
    method: 'get',
    data
  })
}
export function create(data) {
  return request({
    url: '/api/isp/insert',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/api/isp/update',
    method: 'put',
    data
  })
}

export function del(data) {
  return request({
    url: '/api/isp/delete',
    method: 'delete',
    data
  })
}

